Einhugur Word Plugin for Xojo

Paragraph.AppendShapeGroup Method

Appends shape group to the paragraph, and first shape in the group is also created to make the shape group valid. This function calls AppendShapeGroupRun, creating run, then it fetches the shape within the run.

AppendShapeGroup(
   shapeType as EinhugurWord.ShapeTypes,
   x as Double,
   y as Double,
   cx as Double,
   cy as Double,
   unit as EinhugurWord.EmuUnits) as EinhugurWord.ShapeGroup

Parameters

shapeType
The type of the first shape in the group.
x
X Location of the shape from start of the paragraph.
y
Y Location of the shape from start of the paragraph.
cx
Width or x portion 2nd point of the shape.
cy
Width or y portion 2nd point of the shape.
unit
Unit for the shape.

Returns

EinhugurWord.ShapeGroup
The newly created ShapeGroup.

Remarks

A shape group is one or more shapes which have been groupped.

Note that Shape support is very preliminary.


// We add 2 shapes which are grouped
p = doc.AppendParagraph("")
var group as ShapeGroup = p.AppendShapeGroup(ShapeTypes.Ellipse, 1,1.5,1,1, EmuUnits.INCHES)
shape = group.AppendShape(ShapeTypes.Rectangle, 0.25, 0.25, 1.3, 1.3, EmuUnits.INCHES)
shape.SolidFillColor = &CFF0000
shape.Rotation = 3535.0

See Also

Paragraph Class